home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 5164 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.5 KB

  1. Path: inforamp.net!ts44-07
  2. From: rmorin@inforamp.net (Randy Charles Morin)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Help with Win messages
  5. Date: Fri, 02 Feb 96 19:48:31 GMT
  6. Organization: MiddleWorld SoftWare
  7. Message-ID: <4etpgg$7s1@sam.inforamp.net>
  8. References: <40.81784.1613@channel1.com>
  9. NNTP-Posting-Host: ts44-07.tor.inforamp.net
  10. X-Newsreader: News Xpress Version 1.0 Beta #4
  11.  
  12. In article <40.81784.1613@channel1.com>,
  13.    adam.saltman@channel1.com (Adam Saltman) wrote:
  14. >How can I design a window in Borland C++ 4.5 with OWL which will accept 
  15. >messages from the Windows queue that are generated by an outside driver?
  16. >
  17. >That is, my driver sends messages like OL_DA_BUFFER_DONE, and I want to 
  18. >design a handler which works when this message is received. I can't do 
  19. >it in the Class Expert, as this message is not a standard Windows 
  20. >message. Any suggestions? Or do I have to resort to C programming with 
  21. >a message queue checking loop?
  22.  
  23. Here's an example response table, in one of my own programs.
  24. The section between the comment are generated by the Experts,
  25. but I can write my own outside of the comments.
  26.  
  27. DEFINE_RESPONSE_TABLE1(MWChangeDirectoryDialog, TDialog)
  28. //{{MWChangeDirectoryDialogRSP_TBL_BEGIN}}
  29.      EV_LBN_DBLCLK(IDC_CD_LISTBOX, LBNDblclk),
  30.      EV_BN_CLICKED(IDOK, CMOk),
  31. //{{MWChangeDirectoryDialogRSP_TBL_END}}
  32.     EV_COMMAND(OL_DA_BUFFER_DONE, BufferDone)
  33. END_RESPONSE_TABLE;
  34.  
  35. This might not be the solution for your problem,
  36. but some variation of this should work.
  37.  
  38. Agrivar
  39.